package com.qf.spring2202.customfactory.service.impl;

import com.qf.spring2202.customfactory.dao.UserDao;
import com.qf.spring2202.customfactory.dao.impl.UserDaoImpl;
import com.qf.spring2202.customfactory.entity.User;
import com.qf.spring2202.customfactory.service.UserService;



    public class UserServiceImpl implements UserService {
        private UserDao userDao;

        public void setUserDao(UserDao userDao) {
            this.userDao = userDao;
        }

        @Override
        public User getUser(Integer id) {
            System.out.println("UserServiceImpl 的 getUser 执行了 .....");
            User user = userDao.getUserById(id);
            return user;
        }
    }
